﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace AutoIt_Elements.Core.LanguageManager
{
    public class Language
    {
        private string name = String.Empty;
        private bool isCorrupted = false;
        [XmlArray]
        private Dictionary<string, string> tokens = new Dictionary<string, string>();

        public string Name
        {
            get
            {
                return this.name;
            }
            set
            {
                this.name = value;
            }
        }

        public Dictionary<string, string> Tokens
        {
            get
            {
                return this.tokens;
            }
            set
            {
                this.tokens = value;
            }
        }

        public Boolean IsCorrupted
        {
            get
            {
                return this.isCorrupted;
            }
            set
            {
                this.isCorrupted = value;
            }
        }
    }
}
